from django.db import models

# Create your models here.
from django.utils import timezone

from apps.category.models import Article
from apps.users.models import Users


class Comments(models.Model):
    """this is comments modles"""

    content=models.TextField() #comment's content
    comment_article=models.ForeignKey(Article,on_delete=models.CASCADE,verbose_name='评论所属文章')
    comment_user=models.ForeignKey(Users,on_delete=models.CASCADE,verbose_name='评论所属用户')
    date=models.DateField(default=timezone.now)

    class Meta:
        db_table = 'tb_Comments'
        verbose_name = '文章评论'

    def __str__(self):
        return